#ifndef RPC_STRUCT_H
#define RPC_STRUCT_H

#include <QObject>
#include <QString>
#include <QDataStream>

typedef struct _SRpcAlarm
{
 	uint uiID;     
 	QString strStartDT;      
 	QString strEndDT;      
	quint16 usType;
 	quint16 usBankNo;
 	quint16 usCellNo;
 	float fSampVal;
 	float fThreVal;
 	quint16 usNo1;
 	quint16 usNo2;	
}SRpcAlarm;

typedef struct _SRpcLog
{
	uint uiID;     
	QString strStartDT;      
	quint16 usType;
	QString strContext;      
}SRpcLog;

typedef struct _SRpcParam
{
	qreal fBankVolUpLimit;
	qreal fBankVolDownLimit;
	qreal fChargeCurUpLimit;
	qreal fDischargeCurUpLimit;
	qreal fSglVolUpLimit;
	qreal fSglVolDownLimit;
	qreal fChargeSglTempUpLimit;
	qreal fChargeSglTempDownLimit;
	qreal fDchargeSglTempUpLimit;
	qreal fDchargeSglTempDownLimit;
	qreal fBankSocUpLimit;
	qreal fBankSocDownLimit;
	qreal fPosResDownLimit;		
	qreal fNegResDownLimit;		
	qreal fPackVolDiffUpLimit;
	qreal fPackTempDiffUpLimit;
	qreal fPackVolUpLimit;
	qreal fPackVolDownLimit;
	qreal fEnvTempUpLimit;
	qreal fEnvTempDownLimit;
	qreal fPowerLineTempUpLimit;
}SRpcParam;

Q_DECLARE_METATYPE(SRpcAlarm)
Q_DECLARE_METATYPE(SRpcLog)
Q_DECLARE_METATYPE(SRpcParam)

#endif // RPC_STRUCT_H